package com.springcloud.myfeign.myfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="SERVICE-HI")  //被调用方在eureka上注册的application name
public interface HelloWorldService {

	@RequestMapping(value = "/hi",method = RequestMethod.GET)
	//方法名没有实际意义。关键是RequestMapping 里的配置和方法的参数
	String qqq(@RequestParam("name") String name);

	//官网demo start
	//@RequestLine("GET /?since={date}")
	//Ad list(@Param(value = "date", expander = DateToMillis.class) Date date);
	//官网demo end
}
